<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.11.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: CPGraph: Class TCPGraphIterator</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="TCPGraphIterator"></a><h1 class="cio">Class TCPGraphIterator</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td><a class="section"  href="#%40Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section"  href="#%40Methods">Methods</a></td><td><a class="section"  href="#%40Properties">Properties</a></td></tr></table>
<a name="%40Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a   href="CPGraph.html">CPGraph</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCPGraphIterator = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
Class that iterates through the visible points of a function graph using a certain step size. Internal caching is used to acclerate successive iterations.</p>
<a name="%40Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TCPGraphIterator</li></ul><h2 class="overview">Overview</h2>
<a name="%40Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a   href="CPGraph.TCPGraphIterator.html#Create">Create</a></b>(View: <a   href="CPView.TCPView.html">TCPView</a>; Graph: <a   href="CPGraph.TCPGraph.html">TCPGraph</a>);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a   href="CPGraph.TCPGraphIterator.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CPGraph.TCPGraphIterator.html#GetGraphPoint">GetGraphPoint</a></b>(CanvasX: <a   href="CPBase.html#TCPFloat">TCPFloat</a>): <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPGraph.TCPGraphIterator.html#InvalidateCache">InvalidateCache</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPGraph.TCPGraphIterator.html#DrawLineSegments">DrawLineSegments</a></b>;</code></td>
</tr>
</table>
<a name="%40Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPGraphIterator.html#GraphStepSize">GraphStepSize</a></b>: Double read FGraphStepSize
      write SetGraphStepSize;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(View: <a   href="CPView.TCPView.html">TCPView</a>; Graph: <a   href="CPGraph.TCPGraph.html">TCPGraph</a>);</code></td>
</tr>
<tr><td colspan="2">
<p>
Creates a new iterator instance.    canvas units.</p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>View</dt>
<dd>Referenced view of plotter control</dd>
<dt>Graph</dt>
<dd>Graph that is iterated through</dd>
<dt>CanvasStepSize</dt>
<dd>Step size between iterated graph points in</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetGraphPoint"></a><code>function <b>GetGraphPoint</b>(CanvasX: <a   href="CPBase.html#TCPFloat">TCPFloat</a>): <a   href="CPBase.html#TCPFloat">TCPFloat</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns the Y-coodinate of the graph point, whose X-coordinate is closest to the given X-coordinate in canvas units. </p>
<h6 class="description_section">Returns</h6>
<p class="return">Y-coordinate of next graph point in canvas units</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="InvalidateCache"></a><code>procedure <b>InvalidateCache</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Marks internal cache as outdated, so it will be refreshed when the graph is iterated through the next time</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DrawLineSegments"></a><code>procedure <b>DrawLineSegments</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Attempts to draw the graph shape using the cache.</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GraphStepSize"></a><code>property <b>GraphStepSize</b>: Double read FGraphStepSize
      write SetGraphStepSize;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.11.0</a> on 2009-07-25 15:33:03</em>
</span>
</body></html>
